gtk4.git
11 years agowayland: Put interface version defines in a common place
Jonas Ådahl [Fri, 13 Mar 2015 13:38:24 +0000 (21:38 +0800)]
wayland: Put interface version defines in a common place

So far only one, but put it somewhere all files can see it.

https://bugzilla.gnome.org/show_bug.cgi?id=746141

11 years agowayland: Don't set cursor surface scale when we don't have a surface
Jonas Ådahl [Fri, 13 Mar 2015 07:26:51 +0000 (15:26 +0800)]
wayland: Don't set cursor surface scale when we don't have a surface

The setting of the the surface scale even when the surface is not
created from a surface was introduced due to a crash when getting the
buffers when dividing by the scale. The only reason I can see this is
that we get the buffer from a non-existing surface when the wl_cursor
has not yet been set.

Instead, use the name field to avoid trying to use the non-existing
surface, effectively avoiding the division-by-zero that way.

https://bugzilla.gnome.org/show_bug.cgi?id=746141

11 years agoHC: no border for insensitive backdrop buttons
Jakub Steiner [Mon, 16 Mar 2015 11:37:54 +0000 (12:37 +0100)]
HC: no border for insensitive backdrop buttons

https://bugzilla.gnome.org/show_bug.cgi?id=746192

11 years agoUpdated Vietnamese translation
Trần Ngọc Quân [Mon, 16 Mar 2015 07:45:46 +0000 (14:45 +0700)]
Updated Vietnamese translation

Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
11 years agowidget-factory: Add an insensitive toolbutton
Matthias Clasen [Mon, 16 Mar 2015 02:54:02 +0000 (22:54 -0400)]
widget-factory: Add an insensitive toolbutton

This will help getting their theming right in HighContrast.

11 years agowidget-factory: Add tab close buttons
Matthias Clasen [Mon, 16 Mar 2015 02:42:44 +0000 (22:42 -0400)]
widget-factory: Add tab close buttons

This will make it easier to fix issues with such buttons
in HighContrast.

11 years agogtk3-demo: Stop using follow-state
Matthias Clasen [Mon, 16 Mar 2015 02:17:03 +0000 (22:17 -0400)]
gtk3-demo: Stop using follow-state

It is no longer needed.

11 years agoprint dialog: Stop using follow-state
Matthias Clasen [Mon, 16 Mar 2015 02:15:08 +0000 (22:15 -0400)]
print dialog: Stop using follow-state

It is no longer needed.

11 years agoapp chooser widget: Stop using follow-state
Matthias Clasen [Mon, 16 Mar 2015 02:14:47 +0000 (22:14 -0400)]
app chooser widget: Stop using follow-state

It is no longer needed.

11 years agoplaces sidebar: Stop using follow-state
Matthias Clasen [Mon, 16 Mar 2015 02:14:24 +0000 (22:14 -0400)]
places sidebar: Stop using follow-state

It is no longer needed.

11 years agowidget-factory: Stop using follow-state
Matthias Clasen [Mon, 16 Mar 2015 02:09:20 +0000 (22:09 -0400)]
widget-factory: Stop using follow-state

The property is no longer needed, cell renderers now
always follow state.

11 years agoUpdated Swedish translation
Josef Andersson [Sun, 15 Mar 2015 21:30:20 +0000 (21:30 +0000)]
Updated Swedish translation

11 years agoUpdated Slovenian translation
Matej Urbančič [Sun, 15 Mar 2015 20:39:22 +0000 (21:39 +0100)]
Updated Slovenian translation

11 years agoUpdated Danish translation
Ask Hjorth Larsen [Sun, 15 Mar 2015 13:46:54 +0000 (14:46 +0100)]
Updated Danish translation

11 years agogemfile: needs add source rubygems.org
Nelson Benítez León [Sat, 14 Mar 2015 10:38:40 +0000 (15:38 +0500)]
gemfile: needs add source rubygems.org

`bundle install` command on fedora 21 was failing
with following message:

Your Gemfile has no gem server sources. If you need
gems that are not already on your machine, add a line
like this to your Gemfile:
source 'https://rubygems.org'

After adding that line it worked again.

https://bugzilla.gnome.org/show_bug.cgi?id=746205

11 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Sat, 14 Mar 2015 16:59:27 +0000 (17:59 +0100)]
Updated POTFILES.in and POTFILES.skip

11 years agoentry: Make code do what it's meant to do
Benjamin Otte [Fri, 13 Mar 2015 17:04:51 +0000 (18:04 +0100)]
entry: Make code do what it's meant to do

With the 3.0 transition, this code went from just querying the entry's
height request to doing a full size request.
Then it got code to revert the features that a full size request does.
And then it grew code that manually computed the baseline.

Avoid this and just do what happened back in the days: Do a regular
height request.

This changes the semantics of the get_frame_size() vfunc wrt its
behavior towards subclasses overwriting the get_height() vfuncs, but I'm
happy to live with that.

11 years agocellrendererpixbuf: Always follow state
Benjamin Otte [Sat, 14 Mar 2015 14:41:34 +0000 (15:41 +0100)]
cellrendererpixbuf: Always follow state

Applications forget to set the follow-state property and then some
themes used a style where normal symbolic icons have the same color as
prelit or selected backgrounds and that suddenly made icons invisible
and who wants that?

https://bugzilla.gnome.org/show_bug.cgi?id=746201

11 years agogtkstacksidebar: fix missing macro
Carlos Soriano [Sat, 14 Mar 2015 12:34:40 +0000 (13:34 +0100)]
gtkstacksidebar: fix missing macro

commit e41cadd835f9c2 forgot to change some macros.

11 years agoUpdated Bosnian translation
Samir Ribic [Sat, 14 Mar 2015 09:08:02 +0000 (09:08 +0000)]
Updated Bosnian translation

11 years agoMore documentation fixes
Matthias Clasen [Sat, 14 Mar 2015 03:24:02 +0000 (23:24 -0400)]
More documentation fixes

With this commit, gtk3-unused.txt is empty (for the first
time in a looong time).

11 years agoGtkStackSidebar: Fix incomplete renaming
Matthias Clasen [Sat, 14 Mar 2015 02:57:32 +0000 (22:57 -0400)]
GtkStackSidebar: Fix incomplete renaming

Some of the boilerplate macros were missing. Oops

11 years agoMore documentation fixes
Matthias Clasen [Sat, 14 Mar 2015 02:01:47 +0000 (22:01 -0400)]
More documentation fixes

11 years agoDocs: Update ignored header list
Matthias Clasen [Sat, 14 Mar 2015 01:59:38 +0000 (21:59 -0400)]
Docs: Update ignored header list

This reduces the warning spam somewhat.

11 years agoDocumentation fixes
Matthias Clasen [Sat, 14 Mar 2015 01:59:19 +0000 (21:59 -0400)]
Documentation fixes

Add a few missing symbols.

11 years agoFix a typo in the docs
Matthias Clasen [Sat, 14 Mar 2015 01:40:27 +0000 (21:40 -0400)]
Fix a typo in the docs

gtk-doc complains about parameter name mismatches.

11 years agoTranslation pa updated for Gnome
A S Alam [Sat, 14 Mar 2015 02:18:41 +0000 (21:18 -0500)]
Translation pa updated for Gnome

11 years agoupdated Danish translation
Ask Hjorth Larsen [Fri, 13 Mar 2015 22:52:58 +0000 (23:52 +0100)]
updated Danish translation

11 years agoupdated Danish translation
Ask Hjorth Larsen [Fri, 13 Mar 2015 22:51:40 +0000 (23:51 +0100)]
updated Danish translation

11 years agomenu button: Improve accessibility
Matthias Clasen [Fri, 13 Mar 2015 22:38:18 +0000 (18:38 -0400)]
menu button: Improve accessibility

Rework the way we assign an accessible name to menu buttons,
to make sure we pick up a label, should the button contain
one, and only override the name with "Menu" as a fallback.

11 years agotestsuite: Set some environment variables
Matthias Clasen [Fri, 13 Mar 2015 21:40:50 +0000 (17:40 -0400)]
testsuite: Set some environment variables

These were set manually in some tests, but not consistently.

11 years agotestsuite: Drop test bus
Matthias Clasen [Fri, 13 Mar 2015 21:39:47 +0000 (17:39 -0400)]
testsuite: Drop test bus

It seems to be buggy in ways that make the test fail
with a critical when the test bus is brought down.
At the same time, drop manual settings of environment
variables that we can set globally.

11 years agoUpdated Bosnian translation
Samir Ribic [Fri, 13 Mar 2015 20:44:00 +0000 (20:44 +0000)]
Updated Bosnian translation

11 years agoUpdated Bosnian translation
Samir Ribic [Fri, 13 Mar 2015 20:43:23 +0000 (20:43 +0000)]
Updated Bosnian translation

11 years agoUpdate Catalan translation
Jordi Mas [Fri, 13 Mar 2015 06:25:47 +0000 (02:25 -0400)]
Update Catalan translation

11 years ago3.15.11
Matthias Clasen [Thu, 12 Mar 2015 02:25:11 +0000 (22:25 -0400)]
3.15.11

11 years agoFix make dist
Matthias Clasen [Thu, 12 Mar 2015 12:10:29 +0000 (08:10 -0400)]
Fix make dist

Add a missing quote.

11 years agoDrop unused files
Matthias Clasen [Thu, 12 Mar 2015 02:26:17 +0000 (22:26 -0400)]
Drop unused files

11 years agoUpdated Slovak translation
Dušan Kazik [Thu, 12 Mar 2015 10:20:08 +0000 (10:20 +0000)]
Updated Slovak translation

11 years agoUpdated Italian translation
Milo Casagrande [Thu, 12 Mar 2015 08:57:43 +0000 (08:57 +0000)]
Updated Italian translation

11 years agoUpdate Catalan translation
Jordi Mas [Thu, 12 Mar 2015 03:36:52 +0000 (23:36 -0400)]
Update Catalan translation

11 years agoRevert "iconhelper: Don't check states"
Benjamin Otte [Thu, 12 Mar 2015 03:31:45 +0000 (04:31 +0100)]
Revert "iconhelper: Don't check states"

This reverts commit 63f59dde3a2740057fb24115b58100af630aa453.

It turns out, the state was not just necessary for style computation,
but also for tracking RTL and LTR. And so it broke the reftests.

11 years agoAdd some reftests related to textview tags
Matthias Clasen [Thu, 12 Mar 2015 01:45:48 +0000 (21:45 -0400)]
Add some reftests related to textview tags

This test shows that a) tags override the text view style and
b) tags override each other in the expected way.

11 years agoiconhelper: Use the screen's icon theme
Benjamin Otte [Thu, 12 Mar 2015 00:14:06 +0000 (01:14 +0100)]
iconhelper: Use the screen's icon theme

... and not the default one.

11 years agoiconhelper: Replace function
Benjamin Otte [Wed, 11 Mar 2015 22:01:05 +0000 (23:01 +0100)]
iconhelper: Replace function

The old one just calls the other one.

11 years agoiconhelper: Move function from style context into only user
Benjamin Otte [Wed, 11 Mar 2015 20:24:05 +0000 (21:24 +0100)]
iconhelper: Move function from style context into only user

11 years agoiconhelper: Don't check states
Benjamin Otte [Wed, 11 Mar 2015 14:03:02 +0000 (15:03 +0100)]
iconhelper: Don't check states

This is the wrong thing to do in today's world.

11 years agoApp Chooser: Fix app icons in HighContrast
Matthias Clasen [Wed, 11 Mar 2015 19:31:35 +0000 (15:31 -0400)]
App Chooser: Fix app icons in HighContrast

We need to follow-state here as well, to make sure the
icons are visible on selected rows.

11 years agoUpdated Korean translation
Changwoo Ryu [Wed, 11 Mar 2015 17:52:52 +0000 (02:52 +0900)]
Updated Korean translation

11 years agogtkentry: Document vfuncs in GtkEntryClass
Philip Withnall [Tue, 10 Mar 2015 07:57:58 +0000 (07:57 +0000)]
gtkentry: Document vfuncs in GtkEntryClass

Clarify that the signal handler vfuncs can be NULL, nothing else can,
and that they all have default implementations.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtktreeselection: Fix an abort on selecting an invalid range
Philip Withnall [Tue, 10 Mar 2015 08:26:34 +0000 (08:26 +0000)]
gtktreeselection: Fix an abort on selecting an invalid range

gtk_tree_selection_real_modify_range() has a g_return_if_fail() if the
start or end paths passed to it do not correspond to real tree nodes.
However, GtkTreePaths inherently do not have to be valid, so it should
be acceptable to call gtk_tree_selection_select_range() with
non-existent paths. Replace the g_return_if_fail() by a silent return,
and add a unit test.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtknotebook: Add more non-NULL checks for cur_page
Philip Withnall [Tue, 10 Mar 2015 08:34:39 +0000 (08:34 +0000)]
gtknotebook: Add more non-NULL checks for cur_page

These were not spotted by scan-build, but from some brief mental
reasoning could potentially be problem areas.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agoGestures: Properly handle weak references
Matthias Clasen [Wed, 11 Mar 2015 10:47:04 +0000 (06:47 -0400)]
Gestures: Properly handle weak references

Every call to g_object_add_weak_pointer must be matched with
a g_object_remove_weak_pointer call, or we will get invalid
writes inside GObject.

https://bugzilla.gnome.org/show_bug.cgi?id=746013

11 years agowayland: Only bind to supported gtk-shell versions
Jonas Ådahl [Fri, 6 Mar 2015 02:51:47 +0000 (10:51 +0800)]
wayland: Only bind to supported gtk-shell versions

The gtk-shell Wayland protocol extension is not meant to be backward
compatible right now, so avoid binding to any version that is not the
one supported.

https://bugzilla.gnome.org/show_bug.cgi?id=745721

11 years agobuild: Fix generating introspection on MacOS
Emmanuele Bassi [Tue, 10 Mar 2015 22:12:32 +0000 (22:12 +0000)]
build: Fix generating introspection on MacOS

We need to filter out platform-specific sources from the files that we
use with the introspection scanner.

In this specific case I could have moved the gtkclipboard-quartz.c and
the gtkdnd-quartz.c files out of the $(gtk_base_c_sources) variable, but
doing a filter-out on the variable itself is more resilient in case we
eventually add files and we forget about the result.

11 years agoinspector: Add some margin to css editor
Matthias Clasen [Tue, 10 Mar 2015 18:07:27 +0000 (14:07 -0400)]
inspector: Add some margin to css editor

Requested in
https://bugzilla.gnome.org/show_bug.cgi?id=745918

11 years agowindow: reset both press/drag gestures when move/resize drag starts
Carlos Garnacho [Tue, 10 Mar 2015 15:38:17 +0000 (16:38 +0100)]
window: reset both press/drag gestures when move/resize drag starts

Now that this is split in two separate gestures, both must be reset
when the WM grabs the pointer. Also, do on resize drags like on move
drags, and claim the gesture before resetting, so the ownership is
properly transferred across any other widgets.

https://bugzilla.gnome.org/show_bug.cgi?id=745969

11 years agoUpdated Swedish translation
Anders Jonsson [Tue, 10 Mar 2015 12:28:37 +0000 (12:28 +0000)]
Updated Swedish translation

11 years agoUpdated Swedish translation
Anders Jonsson [Tue, 10 Mar 2015 12:27:18 +0000 (12:27 +0000)]
Updated Swedish translation

11 years agonotebook: Fix boolean check
Benjamin Otte [Tue, 10 Mar 2015 12:23:06 +0000 (13:23 +0100)]
notebook: Fix boolean check

Commit c352093bdeb2be5390607de13eaf7a21e93272ef swapped the condition
when turning it into a return_if_fail().

11 years agoentrycompletion: Ensure transient_for is set before showing window
Carlos Garnacho [Mon, 9 Mar 2015 14:15:23 +0000 (15:15 +0100)]
entrycompletion: Ensure transient_for is set before showing window

gtk_entry_set_completion() (and _gtk_entry_completion_connect underneath)
may happen when the entry has no toplevel yet. This window acts as the
"parent" for subsurface windows on wayland, and is indispensable to create
its backing wl_subsurface, so this resulted in non-visible popups there.
Fix this by ensuring transient_for is set before showing the popup.

https://bugzilla.gnome.org/show_bug.cgi?id=745463

11 years agogtknotebook: Fix potential use of uninitialised variables
Philip Withnall [Wed, 20 Nov 2013 17:32:10 +0000 (17:32 +0000)]
gtknotebook: Fix potential use of uninitialised variables

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtkprintunixdialog: Fix a potential g_object_unref(NULL) call
Philip Withnall [Tue, 26 Nov 2013 15:08:08 +0000 (15:08 +0000)]
gtkprintunixdialog: Fix a potential g_object_unref(NULL) call

The code above checks whether (printer == NULL), so we’d better do so
here as well.

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agoRevert "csd: Drop the GTK_FRAME_EXTENTS requirement"
Matthias Clasen [Tue, 10 Mar 2015 00:48:47 +0000 (20:48 -0400)]
Revert "csd: Drop the GTK_FRAME_EXTENTS requirement"

This reverts commit fb9a6bb6d8d6b60b25c9b9853decbcea938f7863.

In a recent test, I've found that Xfce and Mate now support
this, so they will not be affected by this requirement. And
adding the check back will solve the 'client-side shadow'
problem in KDE.

11 years agostylecontext: Store the right style in the cache
Benjamin Otte [Mon, 9 Mar 2015 22:53:43 +0000 (23:53 +0100)]
stylecontext: Store the right style in the cache

Store the newly computed style, not the old and wrong one.

Fixes HighContrast menuitem color sometimes being black-on-black for
selected items.

11 years agogtkclipboard: Fix a potential g_signal_handler_disconnect(NULL) call
Philip Withnall [Thu, 28 Nov 2013 20:43:16 +0000 (20:43 +0000)]
gtkclipboard: Fix a potential g_signal_handler_disconnect(NULL) call

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtkprintcontext: Fix several potential g_object_[un]ref(NULL) calls
Philip Withnall [Tue, 26 Nov 2013 15:04:45 +0000 (15:04 +0000)]
gtkprintcontext: Fix several potential g_object_[un]ref(NULL) calls

The page_setup of a GtkPrintContext or GtkPrintUnixDialog is nullable,
so all reference count changes to it have to be guarded against NULL
values.

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtktreeselection: Fix a potential use of uninitialised variables
Philip Withnall [Wed, 20 Nov 2013 17:39:02 +0000 (17:39 +0000)]
gtktreeselection: Fix a potential use of uninitialised variables

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtktreeselection: Fix potential NULL pointer dereferences
Philip Withnall [Wed, 20 Nov 2013 17:38:01 +0000 (17:38 +0000)]
gtktreeselection: Fix potential NULL pointer dereferences

_gtk_rbtree_first() can potentially return NULL if the RB tree is empty,
which would result in NULL pointer dereferences in the GtkTreeSelection
code. Gracefully handle them.

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtktextview: Fix a definite use of an uninitialised variable
Philip Withnall [Wed, 20 Nov 2013 17:33:59 +0000 (17:33 +0000)]
gtktextview: Fix a definite use of an uninitialised variable

This seems to have been a typo in the original code, and allowed access
to virtual_cursor_y when it was uninitialised.

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtknotebook: Remove dead variable assignments
Philip Withnall [Wed, 20 Nov 2013 17:32:47 +0000 (17:32 +0000)]
gtknotebook: Remove dead variable assignments

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtknotebook: Fix a potential NULL pointer dereference
Philip Withnall [Wed, 20 Nov 2013 17:32:32 +0000 (17:32 +0000)]
gtknotebook: Fix a potential NULL pointer dereference

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtkentry: Return early from gtk_entry_clear() if no icon info exists
Philip Withnall [Wed, 20 Nov 2013 17:30:22 +0000 (17:30 +0000)]
gtkentry: Return early from gtk_entry_clear() if no icon info exists

This helps scan-build avoid some false positive potential NULL pointer
dereference warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtkentry: Remove dead assignments
Philip Withnall [Wed, 20 Nov 2013 17:30:07 +0000 (17:30 +0000)]
gtkentry: Remove dead assignments

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtkentry: Call get_*_size() vfuncs unconditionally
Philip Withnall [Mon, 2 Dec 2013 11:03:28 +0000 (11:03 +0000)]
gtkentry: Call get_*_size() vfuncs unconditionally

These vfuncs cannot be NULL: implementations are provided by GtkEntry,
and subclasses should not set them to NULL. Instead of conditionalising
the calls to the vfuncs, assert that they’re set and call them
unconditionally.

This prevents the possibility of a subclass setting the vfunc to NULL
and then a gtk_entry_get_*_size() call returning undefined values in its
out variables.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtkentry: Fix potential use of uninitialised variables
Philip Withnall [Mon, 2 Dec 2013 11:03:07 +0000 (11:03 +0000)]
gtkentry: Fix potential use of uninitialised variables

Found with scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogdkwindow: Fix potential NULL pointer dereference
Philip Withnall [Wed, 20 Nov 2013 17:18:16 +0000 (17:18 +0000)]
gdkwindow: Fix potential NULL pointer dereference

gdk_window_ensure_native() can end up with a NULL parent pointer, which
it passes to find_native_parent_above()…but that expects a non-NULL
parent.

Found with scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agoPrevent empty password request popup for kerberos
Andre Heinecke [Thu, 5 Feb 2015 10:14:01 +0000 (11:14 +0100)]
Prevent empty password request popup for kerberos

    If auth_info_required is only set to "negotiate" the
    request password dialog is shown anyway for each print
    job without any input fields. As the request_password
    dialog only handles username, password and domain.

    https://bugzilla.gnome.org/show_bug.cgi?id=669008

11 years agoUpdate hello-world.c to GtkApplication, document
Bastian Ilsø [Tue, 10 Feb 2015 15:55:30 +0000 (16:55 +0100)]
Update hello-world.c to GtkApplication, document

11 years agoPrint dialog: Fix printer icons in HighContrast
Matthias Clasen [Mon, 9 Mar 2015 02:05:37 +0000 (22:05 -0400)]
Print dialog: Fix printer icons in HighContrast

We need to make the cell renderer follow the state,
for recoloring to work.

11 years agoHighContrast: Some formatting fixes
Matthias Clasen [Mon, 9 Mar 2015 01:32:38 +0000 (21:32 -0400)]
HighContrast: Some formatting fixes

11 years agoAdd a missing word in the docs
Matthias Clasen [Sun, 8 Mar 2015 22:14:18 +0000 (18:14 -0400)]
Add a missing word in the docs

11 years agoUpdated Lithuanian translation
Aurimas Černius [Sun, 8 Mar 2015 18:22:54 +0000 (20:22 +0200)]
Updated Lithuanian translation

11 years agodocs: Reword the deprecation notice for gtk_widget_override_*
Emmanuele Bassi [Sun, 8 Mar 2015 14:39:18 +0000 (14:39 +0000)]
docs: Reword the deprecation notice for gtk_widget_override_*

They are a bit terse, and they should point to the preferred way of
overriding the theme, i.e. using a GtkStyleProvider for your
application, and custom style classes.

11 years agodocs: Clarify replacement for gtk_style_context_get_background_color()
Emmanuele Bassi [Sun, 8 Mar 2015 14:29:04 +0000 (14:29 +0000)]
docs: Clarify replacement for gtk_style_context_get_background_color()

It seems odd that a getter function for the style context state is
replaced by a rendering call, but it makes sense in context.

11 years agoAdd a test for builder-constructed file filters
Matthias Clasen [Sun, 8 Mar 2015 13:11:51 +0000 (09:11 -0400)]
Add a test for builder-constructed file filters

11 years agoGtkFileFilter: Set name from builder id
Matthias Clasen [Sun, 8 Mar 2015 13:10:58 +0000 (09:10 -0400)]
GtkFileFilter: Set name from builder id

Suggested in https://bugzilla.gnome.org/show_bug.cgi?id=577862
as a way to make file filters constructed with GtkBuilder more
useful.

11 years agoUpdated Kazakh translation
Baurzhan Muftakhidinov [Sun, 8 Mar 2015 11:17:09 +0000 (11:17 +0000)]
Updated Kazakh translation

11 years agodocs: fix reference to GTK+ 2 index of deprecated symbols
Frédéric Péters [Sun, 8 Mar 2015 08:43:04 +0000 (09:43 +0100)]
docs: fix reference to GTK+ 2 index of deprecated symbols

11 years agoFix undefined reference to get_xkb()
Eric Le Bihan [Thu, 23 Oct 2014 11:00:54 +0000 (13:00 +0200)]
Fix undefined reference to get_xkb()

When configuring Gtk+ with --disable-xkb, the build fails because of an
undefined reference to get_xkb().

This patch fixes this issue.

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
https://bugzilla.gnome.org/show_bug.cgi?id=739070

11 years agoModernize the xReply check
Matthias Clasen [Sat, 7 Mar 2015 23:25:57 +0000 (18:25 -0500)]
Modernize the xReply check

Using AC_CHECK_TYPE instead of AC_TRY_COMPILE avoids compiler
warnings from -Werror.

https://bugzilla.gnome.org/show_bug.cgi?id=535929

11 years agoAvoid calling g_object_ref on NULL
Matthias Clasen [Sat, 7 Mar 2015 22:48:11 +0000 (17:48 -0500)]
Avoid calling g_object_ref on NULL

gtk_widget_set_visual() allows NULL for the visual, so be
careful ot to ref it unconditionally.

11 years agoscrolled window: Fix size requisition with overlay scrolling
Matthias Clasen [Sat, 7 Mar 2015 19:18:13 +0000 (14:18 -0500)]
scrolled window: Fix size requisition with overlay scrolling

When the scrollbars are overlayed, the size requisition of the
scrolled window should not depend on whether the scrollbars are
visible or not. This was not quite the case, because we forgot
one case where scrollbar size was still added to the requisition.

11 years agoAdd an example for accelerators with manual image menuitems
Matthias Clasen [Sat, 7 Mar 2015 01:33:38 +0000 (20:33 -0500)]
Add an example for accelerators with manual image menuitems

This is somewhat tricky to work out, so put some example
code here for future reference. The tricky part is that
GtkAccelLabel tries to be smart about hiding the accel
if there's not enough space, so we have to make sure to
pack the label with expand=TRUE and set align=GTK_ALIGN_FILL,
or things won't work.

11 years agotest/gtkgears.c: Fix on C89 Compilers
Chun-wei Fan [Fri, 6 Mar 2015 03:01:30 +0000 (11:01 +0800)]
test/gtkgears.c: Fix on C89 Compilers

Make sure that variables are declared at the top of the block.

Break up one of the sincos() calls into individual calls to sin() and cos()
so that we do not have to complicate the initialization of the following
GLfloat array.

11 years agoUpdated Korean translation
Changwoo Ryu [Fri, 6 Mar 2015 13:14:03 +0000 (22:14 +0900)]
Updated Korean translation

11 years agogl: Warn the user if they request a GL context version less than 3.2
Niels Nesse [Wed, 11 Feb 2015 04:35:01 +0000 (20:35 -0800)]
gl: Warn the user if they request a GL context version less than 3.2

If the user requests a version less than 3.2 the version is forced to 3.2.
Previous checking code have an inconsistent behavior depending on which
minor version number was specified. This is avoided now by temporarily
converting the major/minor pair into a single integer.

https://bugzilla.gnome.org/show_bug.cgi?id=744288

11 years agoUpdate config.h.win32.in for sincos()
Chun-wei Fan [Fri, 6 Mar 2015 02:49:25 +0000 (10:49 +0800)]
Update config.h.win32.in for sincos()

There was an added check in configure.ac for sincos() for gtkgears.c, where
that function is actually a GCC- and glibc-specific extension, which is
not available on Windows.  Reflect on this in config.h.win32.in for the
Visual Studio/Windows builds.

11 years agoMSVC Builds: "Install" .pdb Files
Chun-wei Fan [Fri, 6 Mar 2015 02:40:46 +0000 (10:40 +0800)]
MSVC Builds: "Install" .pdb Files

"Install" the .pdb files that were generated along with the build, to make
it easier for people to develop and debug GTK+, especially when used as a
stack, and as the .pdb files are already generated with all builds.

Also make the copy of the .dll, .lib and .exe files more selective so that
we do not accidently copy files that are not meant to be "installed", or
end up making extra copies of plugin DLLs in the wrong places, when the
projects here are included as a part of a grand solution that is used to
build the entire GTK+ stack, for example.

11 years agoMSVC 2010+ Builds: Fix .pdb Generation
Chun-wei Fan [Fri, 6 Mar 2015 02:25:18 +0000 (10:25 +0800)]
MSVC 2010+ Builds: Fix .pdb Generation

For Visual Studio 2010 and later, the .pdb filename needs to be explicitly
specified so that it will match the filename of the target, if the project
name differs from the filename of the target.  Make sure that is the case
for the 3 DLLs that we build for Visual Studio 2010 and later.